package com.zx.web.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity：用户日志 [engine:InnoDB,type:BASE TABLE,catalog:def,schema:file,name:sys_log,auto:98].
 * @author Ken
 * @since 2017-04-23 22:41
 * @version v1.0.0
 */
@Entity
@Table(name = "sys_log")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /** */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;// ,key:PRI,null:NO,type:bigint,charset:,default: ,maxLen:

    /** 用户名*/
    @Column(name = "username")
    private String username;// 用户名,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:20

    /** 操作类别*/
    @Column(name = "oper")
    private String oper;// 操作类别,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:64

    /** 操作日志详情，如添加物料号*/
    @Column(name = "detail")
    private String detail;// 操作日志详情，如添加物料号,key:,null:YES,type:text,charset:utf8,default: ,maxLen:65,535

    /** 日志时间*/
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "time_create")
    private Date timeCreate;// 日志时间,key:,null:NO,type:datetime,charset:,default: ,maxLen:

    // @Transient
    // private Object transientFiled;

    public SysLog() {}

    /**
     * 获取.
     */
    public Long getId() {
        return this.id;
    }

    /**
     * 设置.
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取用户名.
     */
    public String getUsername() {
        return this.username;
    }

    /**
     * 设置用户名.
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取操作类别.
     */
    public String getOper() {
        return this.oper;
    }

    /**
     * 设置操作类别.
     */
    public void setOper(String oper) {
        this.oper = oper;
    }

    /**
     * 获取操作日志详情，如添加物料号.
     */
    public String getDetail() {
        return this.detail;
    }

    /**
     * 设置操作日志详情，如添加物料号.
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }

    /**
     * 获取日志时间.
     */
    public Date getTimeCreate() {
        return this.timeCreate;
    }

    /**
     * 设置日志时间.
     */
    public void setTimeCreate(Date timeCreate) {
        this.timeCreate = timeCreate;
    }
}
